import { ApiPrefixEnum } from '@/enums'
import { get, post } from '@/utils/http'

// 获取租户列表
export function getTenantList(data: any) {
  return get<any>(`${ApiPrefixEnum.CONTRACT}/paas/ops/tenant/page`, {
    params: data,
  })
}

// 注册租户
export function createTenant(data: any) {
  return post<any>(`${ApiPrefixEnum.CONTRACT}/paas/ops/tenant`, data)
}

// 获取企业列表
export function getCompanyList() {
  return get<any>(`${ApiPrefixEnum.SERVICE}/security/company/options`, {})
}
